<include file="Public:meta" />
		<include file="Public:top" />
	    <!--banner-->
	    <div class="banner">
			<div data-am-widget="slider" class="am-slider am-slider-a1" data-am-slider='{"directionNav":false}' >
			  <ul class="am-slides">
	<volist name="ad_list" id="ad">
			    <li><a rel="nofollow" href="{$ad.url}"><img width="100%" src="{$ad.img}" /></a></li>
 </volist>
			  </ul>
			</div>
		</div>
	    <!-- category -->
	    <div class="category">
	        <div class="category-item"><a href="{:U('pdd/index')}{$trackurl}"><img src="__STATIC__/wap/images/icon/icon-duo.png" class="category-icon"><p class="category-name">全民拼团</p></a></div>
	        <div class="category-item"><a href="{:U('brand/index')}{$trackurl}"><img src="__STATIC__/wap/images/icon/icon-diamond.png" class="category-icon"><p class="category-name">品牌特惠</p></a></div>
	        <div class="category-item"><a href="{:U('jiu/index')}{$trackurl}"><img src="__STATIC__/wap/images/icon/icon-nine.png" class="category-icon"><p class="category-name">9块9包邮</p></a></div>
	        <div class="category-item"><a href="{:U('jingxuan/index')}{$trackurl}"><img src="__STATIC__/wap/images/icon/icon-coupon.png" class="category-icon"><p class="category-name">大额券</p></a></div>
	        <div class="category-item"><a href="{:U('article/index')}{$trackurl}"><img src="__STATIC__/wap/images/icon/icon-book.png" class="category-icon"><p class="category-name">优惠头条</p></a></div>
	    </div>
	    <!-- lingquan -->
	    <div class="container">
	   <a href="{:U('login/register')}"><img src="__STATIC__/wap/images/icon/lingquan.png?v=1" width="100%" class="am-img-responsive"></a>
	    </div>
        
        <!-- section -->
	    <div class="section">
	        <div class="section-item">
	        	<a href="{:U('jiu/index')}">
	            <div class="section-content">
	                <div class="section-title maincolor">9.9元包邮</div>
	                <div class="section-desc maincolor">好货底价疯抢</div>
	                <div class="btn-main-gradient btn-sm section-btn">省钱又放心</div>
	            </div>
	            <img src="__STATIC__/wap/images/static/cream.png" width="70" height="96" class="section-pic">
	       </a>
	        </div>
	        <div class="section-item">
	        	  	<a href="{:U('jingxuan/index')}">
	            <div class="section-content">
	                <div class="section-title maincolor">巨划算</div>
	                <div class="section-desc maincolor">好品味从挑剔开始</div>
	                <div class="btn-blue-gradient btn-sm section-btn">千款好货</div>
	            </div>
	            <img src="__STATIC__/wap/images/static/flower.png" width="88" class="section-pic">
	            </a>
	        </div>
	        <div class="section-item">
	        	  	<a href="{:U('top100/index')}">
	            <div class="section-content">
	                <div class="section-title maincolor">热销榜</div>
	                <div class="section-desc maincolor">大家都在抢</div>
	                <div class="btn-green-gradient btn-sm section-btn">热销推荐</div>
	            </div>
	            <img src="__STATIC__/wap/images/static/cloth.png" width="75" class="section-pic">
	        </a>
	        </div>
	        <div class="section-item">
	        	    	<a href="{:U('basklist/index')}">
	            <div class="section-content">
	                <div class="section-title maincolor">晒单赚积分</div>
	                <!--<div class="section-time timmer"><span class="btn-main btn-xs timmer_h">00</span>:<span class="btn-main btn-xs timmer_m">60</span>:<span class="btn-main btn-xs timmer_s">32</span></div>-->
	                <div class="section-desc maincolor">积分兑好礼</div>
	                <div class="btn-violet-gradient btn-sm section-btn">晒单广场</div>
	            </div>
	            <img src="__STATIC__/wap/images/static/shaidan.png" width="81" height="81" class="section-pic">
	         </a>
	        </div>
	       
	    </div>
	    
	    		    <div class="watch-wrap">
	        <div class="btn-main-gradient btn-tag btn-md index-title">新品发布</div>
	        <div class="watch">
	   <volist name="today_list" id="to" key="i">
	          <div class="watch-item <if condition='$i eq 1'>watch-max<else/>watch-min</if>">
	          <a href="{:U('item/index',array('id'=>$to['id']))}{$trackurl}"><img src="{$to.pic_url}_400x400.jpg" class="watch-pic"/></a>
	            <img src="__STATIC__/wap/images/icon/icon-heart.png" class="watch-heart"/>
	            <div class="watch-mask">
	            	<if condition='$i eq 1'>
	            	<p class="watch-font">券后￥{$to.coupon_price}</p>
	            	<else/>
	            <div class="btn-pink btn-tag btn-xs">NEW</div>
	            	</if>
	            	<p class="watch-font">{$to.quan}元券</p></div>
	          </div>
	 </volist>
	          
	          
	        </div>
	    </div>
		<!--pin-->
		<div class="pin-wrap">
			<div class="btn-blue-gradient btn-tag btn-md index-title">3亿人都在拼</div>
			<div class="swiper-container pin">
			  <div class="swiper-wrapper">
			  <volist name="pdditems" id="vo">
			    <div class="swiper-slide">
			   <div class="pin-item">
			    		<div class="pin-pic">
			    			<a href="{:U('pdditem/index',array('id'=>$vo['goods_id']))}{$trackurl}"><img src="{$vo.goods_thumbnail_url}" class="pin-pic-img" /></a>
			    			<span class="f-12 c-white pin-pic-count">已拼{$vo.sold_quantity}件</span>
			    		</div>
			    		<div class="pin-main">
			    			<p class="am-text-truncate f-12 c-111 pin-tit"><img src="__STATIC__/wap/images/icon/icon-pin.png" width="12" height="12" class="pin-tit-icon"/>{$vo.goods_name}</p>
			    			<div class="am-cf">
			    				<p class="f-12 c-666 am-fl">现价：<span class="maincolor">￥{$vo.min_normal_price}</span></p>
			    				<p class="f-12 c-666 am-fr">拼团：<span class="maincolor">￥{$vo.min_group_price}</span></p>
			    			</div>
			    		</div>
			    		<div class="pin-footer">
			    			<div class="coupon_pin">
			    				<div class="coupon_pin-name"><p class="f-12 c-white">{$vo.coupon_discount}元券</p></div>
			    				<div class="coupon_pin-count"><p class="f-12 maincolor">券后{:$vo['min_group_price']-$vo['coupon_discount']}元</p></div>
			    			</div>
			    		</div>
			    	</div>
			    </div>
			    </volist>	
			
			    </div>
			  </div>
			</div>
		</div>
		

		
		
	    <!-- goods -->
	    <div class="goods-wrap">
	       <div class="goods-title"><div class="btn-violet-gradient btn-tag btn-md">全网最热优惠券</div><div class="f-12 c-666">百万商品实时更新</div></div>
	       <div class="goods">

			   <volist name='list' id="vo">
	            <div class="goods-item">
					<a href="{$vo.linkurl}{$trackurl}">
	               <div class="goods-pic">
	                   <img src="{$vo.pic_url}_400x400.jpg" class="goods-img">
	                   <div class="goods-mask">已售{$vo.volume}件</div>
	               </div>
	               <div class="goods-info">
	                   <i class="icon-type  <if condition="$vo.shop_type eq 'B'">tmall<else/>taobao</if>"></i>
	                   <p class="goods-name ellipsis-2">{$vo.title}</p>
	               </div>
	               <div class="goods-mid">
	                   <p class="f-12 c-999">现价 ￥{$vo.price}</p>
	                   <if condition="$visitor">
	                   <p class="goods-share maincolor">返￥
	                   		{:Rebate1($vo['coupon_price']*$vo['commission_rate']/10000)}
	                   </p>
	                   </if>
	               </div>
	               <div class="goods-bot">
	                   <p class="f-12 c-111">券后<span class="maincolor"> {$vo.coupon_price}元</span></p>
	                   <div class="goods-coupon">
	                       <p class="f-10 c-white">{$vo.quan}元券</p>
	                   </div>
	               </div>
					</a>
	            </div>

</volist>
	       </div>
	       <div class="am-text-center am-padding" style="padding-bottom: 50px;">
		       	<a href="{:U('cate/index')}" class="btn am-btn btn-default radius">查看更多优惠商品</a>
	       </div>
	    </div>
		<tqkjs  href="__STATIC__/wap/js/jquery.min.js,__STATIC__/wap/js/amazeui.min.js,__STATIC__/wap/js/swiper.min.js"/>
		</script>
	    <!--footer-->
		<include file="Public:footer" />
		<if condition="$alertadv">
			<script src="__STATIC__/wap/layer/layer.js" type="text/javascript" charset="utf-8"></script>
			<script src="__STATIC__/wap/js/clipboard.min.js" type="text/javascript" charset="utf-8"></script>
			<div id="activity">
				<img src="__STATIC__/tqkpc/images/wap11.png" width="100%"/>
				<label class="cancel"></label>
				<button class="actcopy" data-clipboard-action="copy" data-clipboard-text="{$alertadv.url}"></button>  
			</div>
			<script>
				layer.open({
				  type: 1,
				  title: false,
				  closeBtn: 0,
				  area: '100%',
				  offset:'80px',
				  skin: 'layui-layer-nobg', //没有背景色
				  shadeClose: true,
				  content: $('#activity'), 
				  success: function(layero, index){
					$('.cancel').click(function(){
					layer.close(index);
					})
				  },
				});
				new ClipboardJS('.actcopy');
				$('.actcopy').on('click',function(){
				  layer.msg('淘口令复制成功，打开淘宝App即可拆红包', {time:2000});	
				})	
			</script>
		</if>
		<script type="text/javascript">
			var menuSwiper = new Swiper('.menu', {
				slidesPerView :'auto' ,
				resistanceRatio : 0.7,
				navigation: {
				    nextEl: '.swiper-button-next'
				}
			})
			
			var pinSwiper = new Swiper('.pin',{
				slidesPerView :'auto',
				spaceBetween : 12,
				resistanceRatio : 0.7
			})
		
			var minute = 59,second = 59
			setInterval(function(){
		        if(second<10){
		            $('.timmer_s').html('0'+second);
		        }else{
		            $('.timmer_s').html(second);
		        }
		        second--;
		        if(second<=0){
		            second=59;
		            minute--;
		        }
		    },1000)
			
			
            $(window).scroll(function(){
            	if($(".goods-wrap").offset().top - $(window).scrollTop()>115){
            		$(".filter-wrap").fadeOut()
            	}else{
            		$(".filter-wrap").fadeIn()
            	}
            })
            
            $(function(){
            	$(".watch-heart:gt(1)").hide()
            })
;$(function(){
    $('#drop-down, .drop-down').click(
    	function(){
    		var action = $('#drop-down, .drop-down').attr('data-action');
    		if(action == 'down'){
    			$('.drop-down i').attr({ class: "iconfont tqk-jiantou_up maincolor" });
    			$('.cxx-more-cate').slideDown('fast');
    			$('.cxx-transparent-bg').show();
    			$('#drop-down, .drop-down').attr('data-action','up');	
    		}
    		if(action == 'up'){
                $('.drop-down i').attr({ class: "iconfont tqk-jiantou_down maincolor" });
                $('.cxx-transparent-bg').hide();
    			$('.cxx-more-cate').slideUp('fast');
    			$('.cxx-transparent-bg').hide();
    			$('#drop-down, .drop-down').attr('data-action','down');
    		}		
    	}
    );
    $('.cxx-transparent-bg').on('click',function(){
        var action = $('#drop-down, .drop-down').attr('data-action');
        if(action == 'up'){
            $('.drop-down i').attr({ class: "iconfont tqk-jiantou_down maincolor" });
            $('.cxx-transparent-bg').hide();
            $('.cxx-more-cate').slideUp('fast');
            $('.cxx-transparent-bg').hide();
            $('#drop-down, .drop-down').attr('data-action','down');
        }
    	$('.cxx-transparent-bg').hide();	
    });
});
</script>
	<include file="Public:stat" />
	</body>
</html>
